import random
a = int(input("Введите кол-во выстрелов: "))
b = 0
for i in range(0,a+1):
    x = random.randint(-100,100)
    y = random.randint(-100,100)
    if x>=-7 and x<=5 and y>=-8 and y<=5:
        b += 1
print(b)

